<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>关注 - 我关注的创作者发布</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    {% load static %}
    <link rel="stylesheet" href="{% static 'home/home.css' %}">
</head>
<body>
    <!-- 导航栏：与首页一致 -->
    <nav class="navbar navbar-expand-lg navbar-light bg-white shadow-sm py-3">
        <div class="container">
            <a class="navbar-brand" href="{% url 'home' %}">
                <i class="fas fa-play-circle me-2"></i>ShortVid
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="{% url 'home' %}">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="{% url 'discover' %}">发现</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="{% url 'hot' %}">热门</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">关注</a>
                    </li>
                </ul>
                <div class="d-flex align-items-center">
                    {% if user.is_authenticated %}
                        <a href="{% url 'profile' %}" class="d-flex align-items-center me-3 text-decoration-none">
                            <div class="user-avatar">{{ user.username|first|upper }}</div>
                            <span class="user-greeting ms-2">你好, {{ user.username }}!</span>
                        </a>
                        <a href="{% url 'logout' %}" class="btn btn-outline-primary btn-sm">注销</a>
                    {% else %}
                        <a href="{% url 'login' %}" class="btn btn-outline-primary me-2">登录</a>
                        <a href="{% url 'register' %}" class="btn btn-primary">注册</a>
                    {% endif %}
                </div>
            </div>
        </div>
    </nav>

    <!-- 页面头部 -->
    <section class="py-5 gradient-bg text-white">
        <div class="container">
            <h1 class="display-6 fw-bold mb-2">我关注的创作者</h1>
            <p class="mb-0 opacity-75">以下是你关注的创作者近期发布的视频</p>
        </div>
    </section>

    <!-- 关注视频流（示例卡片，占位数据）-->
    <main class="py-5 bg-white">
        <div class="container">
            <div class="d-flex align-items-center mb-4">
                <i class="fa-solid fa-user-check me-2 text-primary"></i>
                <h2 class="section-title mb-0">关注动态</h2>
            </div>
            <div class="row g-4">
                <!-- 示例：后续用后端数据替换 -->
                <div class="col-lg-3 col-md-6">
                    <div class="video-card">
                        <div class="video-thumbnail" style="background: linear-gradient(135deg, #6c5ce7, #a29bfe);">
                            <div class="play-icon"><i class="fas fa-play"></i></div>
                        </div>
                        <div class="video-info">
                            <div class="video-title">@Alice 发布：城市延时摄影</div>
                            <div class="video-creator text-muted small">2 小时前 · 1.3万 次观看</div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-md-6">
                    <div class="video-card">
                        <div class="video-thumbnail" style="background: linear-gradient(135deg, #00b894, #55efc4);">
                            <div class="play-icon"><i class="fas fa-play"></i></div>
                        </div>
                        <div class="video-info">
                            <div class="video-title">@Bob 发布：健身拉伸合集</div>
                            <div class="video-creator text-muted small">昨天 · 8.2千 次观看</div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-md-6">
                    <div class="video-card">
                        <div class="video-thumbnail" style="background: linear-gradient(135deg, #e17055, #fdcb6e);">
                            <div class="play-icon"><i class="fas fa-play"></i></div>
                        </div>
                        <div class="video-info">
                            <div class="video-title">@Cathy 发布：宠物日常 Vlog</div>
                            <div class="video-creator text-muted small">2 天前 · 3.6千 次观看</div>
                        </div>
                    </div>
                </div>
                <div class="col-lg-3 col-md-6">
                    <div class="video-card">
                        <div class="video-thumbnail" style="background: linear-gradient(135deg, #0984e3, #74b9ff);">
                            <div class="play-icon"><i class="fas fa-play"></i></div>
                        </div>
                        <div class="video-info">
                            <div class="video-title">@Daisy 发布：海边日落</div>
                            <div class="video-creator text-muted small">本周 · 9.1千 次观看</div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="text-center mt-4">
                <a href="{% url 'discover' %}" class="btn btn-outline-primary">去发现更多创作者</a>
            </div>
        </div>
    </main>

    <!-- 页脚：与首页一致 -->
    <footer class="footer">
        <div class="container">
            <div class="row">
                <div class="col-lg-4 mb-4">
                    <h4 class="mb-4"><i class="fas fa-play-circle me-2"></i>ShortVid</h4>
                    <p>关注你喜欢的创作者，第一时间看到他们的最新发布。</p>
                </div>
                <div class="col-lg-2 col-md-6 mb-4">
                    <h5 class="mb-4">平台</h5>
                    <ul class="list-unstyled">
                        <li class="mb-2"><a href="{% url 'home' %}">首页</a></li>
                        <li class="mb-2"><a href="{% url 'discover' %}">发现</a></li>
                        <li class="mb-2"><a href="{% url 'hot' %}">热门</a></li>
                        <li class="mb-2"><a href="#">关注</a></li>
                    </ul>
                </div>
            </div>
            <hr class="my-4">
            <div class="text-center">
                <p>&copy; 2025 ShortVid 短视频平台. 保留所有权利.</p>
            </div>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
    <script src="{% static 'home/home.js' %}"></script>
</body>
</html>
